package com.doctor.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.doctor.common.annotation.Excel;
import com.doctor.common.core.domain.BaseEntity;

/**
 * 预约记录对象 t_appointment
 * 
 * @author Li
 * @date 2024-05-15
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long appointmentId;

    /** 排班详情id */
    @Excel(name = "排班详情id")
    private Long doctorScheduledId;

    /** 患者用户id */
    @Excel(name = "患者用户id")
    private Long patientId;

    /** 医生用户id */
    @Excel(name = "医生用户id")
    private Long doctorId;

    /** 医生名称 */
    @Excel(name = "医生名称")
    private String doctorName;

    /** 真名 */
    @Excel(name = "真名")
    private String trueName;

    /** 联系号码 */
    @Excel(name = "联系号码")
    private String phone;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 预约时段 */
    @Excel(name = "预约时段")
    private String appointmentTime;

    /** 预约码 */
    @Excel(name = "预约码")
    private String code;

    /** 预约状态(1预约，2取消，3就诊，4未就诊，5评论) */
    @Excel(name = "预约状态(1预约，2取消，3就诊，4未就诊，5评论)")
    private Integer appointmentStatus;

    /** 评分 */
    @Excel(name = "评分")
    private Integer score;

    /** 评论 */
    @Excel(name = "评论")
    private String comment;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;
}
